package com.meituan.verintreport.db.dao;

import com.meituan.verintreport.db.dto.AnswersDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AnswersMapper {
    int insert(AnswersDto record);

    Integer getMaxAnswerId();

    Integer getMaxAnswerIdBeforeDateTime(@Param("endTime") String endTime);

    /**
     * 清空Answers 数据
     * @return 清空的数量
     */
    Integer removeAnswersAll();

}